﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

using DQYT.HTDZ.BLL;
using DQYT.HTDZ.Model;

namespace DQYT.HTDZ.Web.BDZDJY
{
    public partial class Show : Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    decimal ID = (Convert.ToDecimal(strid));
                    ShowInfo(ID);
                }
            }
        }

        private void ShowInfo(decimal ID)
        {
            BDZDJYBLL bll = new BDZDJYBLL();
            BDZDJYModel model = bll.GetModel(ID);
            this.lblID.Text = model.ID.ToString();
            this.lblWELLID.Text = model.WELLID;
            this.lblPULLID.Text = model.PULLID.ToString();
            this.lblZDSJ.Text = model.ZDSJ.ToString();
            this.lblZJGL.Text = model.ZJGL;
            this.lblWGBC.Text = model.WGBC;
            this.lblCYJYXFX.Text = model.CYJYXFX;
            this.lblPHTZ.Text = model.PHTZ;
            this.lblPZTZ.Text = model.PZTZ;
            this.lblFGQK.Text = model.FGQK;
            this.lblGYQK.Text = model.GYQK;
            this.lblCCTZ.Text = model.CCTZ;
            this.lblCCITZ.Text = model.CCITZ;
            this.lblPJDDJXN.Text = model.PJDDJXN;
            this.lblPJCYJXN.Text = model.PJCYJXN;
            this.lblPJJNGXN.Text = model.PJJNGXN;
            this.lblPJSBGLSP.Text = model.PJSBGLSP;

        }


    }
}
